package com.anrongtec.zcpt.interfaces;

import android.util.Log;

import com.art.base.util.PreferenceUtils;
import com.art.base.util.log.LogUtil;

/**
 * 
 * @author dongtianhao
 *
 */
public class ShuJuURL {

	// http://211.149.241.114:8080/store/
	private static final String TAG = "url";
	// private static final String STORE = "/store/";
	private static final String STORE = "/support-store/";


	public static final String IP = "ip";
	public static final String PORT = "port";
	public static final String PUSH_IP = "push_ip";
	public static final String PUSH_PORT = "push_port";
	//public static final String DEFAULT_IP = "192.168.1.46";
	//public static final String DEFAULT_IP = "127.0.0.1";
//	public static final String DEFAULT_IP = "192.168.20.241";//新链路   三区
	public static final String DEFAULT_IP = "20.25.0.94";//新链路   二区
//	public static final String DEFAULT_IP = "192.168.20.228";
	public static final String DEFAULT_PUSH_IP = "8680";
	public static final int DEFAULT_PUSH_PORT = 8080;
	//public static final int DEFAULT_PORT = 8080;
//	public static final int DEFAULT_PORT = 11001;//默认端口号 后台要求由11013改为11001,2018/1/5
	public static final int DEFAULT_PORT = 18080;//默认端口号 新链路二区

	// 获取配置
//	public static String GET_CONFIG = "http://192.168.20.241:11013/ydjwConfig/services/v2/get?app=ydjwconfig&";
	public static String GET_CONFIG = "http://20.25.0.94:18080/ydjwConfig/services/v2/get?app=ydjwconfig&";//2区
	//通过sessionKey  获取url地址
//	public static String  GET_INFO_BY_SEESIONKEY="http://192.168.20.241:11001/mpsession/session/get?sessionKey=APPSESSION:";
	public static String  GET_INFO_BY_SEESIONKEY="http://20.25.0.94:18080/mpsession/session/get?sessionKey=APPSESSION:";//2区
    //
	public static String  GET_BILL ="http://20.25.0.94:11008/uas/sso/singlesignoncontrol/checkbill.do?strBill=";

    //权限控制显示
//	public static final String GET_PERMISSIONS = "http://192.168.20.241:11013/ydjwConfig/permissions/v2/get?app=ydjwconfig&";
	 public static final String GET_PERMISSIONS = "http://20.25.0.94:18080/ydjwConfig/permissions/v2/get?app=ydjwconfig&";
	public static String JieKou_URL() {
		String string = "http://" + getIP() + ":" + getPOST() + STORE;
		LogUtil.trace(Log.DEBUG, TAG, string);
		return string;
	}


	public static String getIP() {
		// return "211.149.241.114";
		// return "211.149.172.51";
		//		 return "192.168.0.109";
		//		 return "192.168.6.50";//二类网
		//		 return "192.168.200.107";
		return PreferenceUtils.getInstance().getString(ShuJuURL.IP, DEFAULT_IP);
	}

	public static int getPOST() {
		//		 return 8080;
		//		return 8180;//JTT本地
		//		return 8780;//广西二类
		return PreferenceUtils.getInstance().getInt(ShuJuURL.PORT, DEFAULT_PORT);
	}
	/*public static String getIP() {
		 return "192.168.6.50";//二类网
//		 return "192.168.200.107";
	}

	public static int getPOST() {
//		 return 8080;
//		return 8180;//JTT本地
		return 8780;
	}
*/
	public int getPUSH_POST() { 
		return 5222;
	}

	/** 拼接下载url */
	public static String DownloadURL() {
		return JieKou_URL() + "download?fileId=";
	}

	/**
	 * 登录接口数据
	 * 
	 * @ClassName: Login
	 * @Description: TODO(这里用一句话描述这个类的作用)
	 * @author dongtianhao
	 * @date 2016年7月12日 上午9:48:35
	 *
	 */

}
